package fivecardstudd;

public class HumanPlayer extends Player{

	private Table table;
	public HumanPlayer(int chips, Table table) {
		super(chips, table);
		
	}

	
	public void getPlayerMove(){
     	
     			System.out.println(getName()+",Do you want to call (c), raise(r), fold(f), or all in (a)");
     			String s=input.next();
     		if(s.startsWith("c")){
     			call();
     		}
     		else if (s.startsWith("r")){
     			System.out.println("Raise how much ?");
     			int amount=input.nextInt();
     			raise(amount);
     		}
     		else if(s.startsWith("a")){
     			System.out.println("All in !");
     			allIn();
     		}
     		else if(s.startsWith("f")){
     			System.out.println("You have folded");
     			fold();
     		}
     		
     	}
	
}
